#!/bin/sh

if [ "$1" = "" ]; then
  echo "Args: <dir>"
  exit
fi
dir=$1; shift

for f1 in `ls $dir`; do
  #f2=`echo $f1| tr A-Z a-z`
  #n1=`basename $f2`
  #n2=`basename $f2 .jpg`
  #n2="$n2.jpg"
  ./jpeg.exe -2 -v2 -bzz1.bmp -i$dir/$f1
  mspaint zz1.bmp; read s1
done
